#include <stdio.h> 
#include <unistd.h> 
#include <string.h> 
#include <errno.h> 

int main(int argc, char **argv) {
    fprintf(stderr, "error.................\n");
    int ret = daemon(1, 0);
    if (ret == -1) {
        printf("make daemon error<%s>\n", strerror(errno));
        return -1;
    }

    while (true) { 
        sleep(1);
        printf("hello\n");
    } 
    return 0;
}
